Skip to content

Add size for each log file - #2

Open
rewiko wants to merge 2 commits into
masterfrom
add-size-of-each-log-file
Open

Add size for each log file#2
rewiko wants to merge 2 commits into
masterfrom
add-size-of-each-log-file

Conversation

@rewiko

@rewiko rewiko commented Nov 4, 2019

Copy link
Copy Markdown
Owner

Which issue(s) this PR fixes:
As part of #1, log throttling would be doable and that will throttle the log after X logs per second, logs will be delayed.

What this PR does / why we need it:
This PR will add the size of the log which can be exported by fluent-plugin-prometheus-pr. We will be able to monitor the delay by comparing fluentd_tail_file_position and fluentd_tail_file_size.

Docs Changes:

Release Note:

Remove debug log

Add size file

Update size parameter FilePositionEntry

adding logs

update pos file function in memory

add debug size log

update file size from pos_file read

Save size inside the file and keep it backward compatible

Revert "Add log throttling per file"

This reverts commit f5bb69b.

Remove debug log
@rewiko rewiko changed the title Add size of each log file Add size for each log file Nov 4, 2019
@rewiko
rewiko force-pushed the add-size-of-each-log-file branch 2 times, most recently from 9321337 to 427ea1f Compare November 4, 2019 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant